//
// Created by 25362 on 24-11-17.
//

#ifndef STUDENTLIST_H
#define STUDENTLIST_H
#include "student.h"

class Student_list {
    public:
    vector<Student> students;
    int studentNum{};

    Student_list();
    explicit Student_list(const vector<Student>& students);
    ~Student_list();

    void init();

    void display_list();

    void insert_student();

    void delete_student();

    void select_student();

    void delete_sysinfo();

    void modify_student_baseinfo(int id);

    void modify_student_subjectinfo(int i);

    void modify_student();

    void statistics_student();

    void merge_student(vector<Student> q, int l, int r);

    void menu();

    void listOrder();

    void quickOrder(int l, int r);

    int DuplicationCheck(int id);

    void readFile();

    void writeFile();
};

#endif //STUDENTLIST_H
